package cn.springboot.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName warehouse_transfers
 */
@TableName(value ="warehouse_transfers")
@Data
public class WarehouseTransfers implements Serializable {
    /**
     * 调拨ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 调出仓库ID,关联仓库表
     */
    @TableField(value = "from_warehouse_id")
    private Integer fromWarehouseId;

    /**
     * 调入仓库ID,关联仓库表
     */
    @TableField(value = "to_warehouse_id")
    private Integer toWarehouseId;

    /**
     * 调拨日期,记录调拨发生的日期
     */
    @TableField(value = "transfer_date")
    private Date transferDate;

    /**
     * 调拨明细，文本类型或JSON类型，存储商品列表及其数量
     */
    @TableField(value = "details")
    private String details;

    /**
     * 调拨备注
     */
    @TableField(value = "note")
    private String note;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}